package com.chengh.vhr.service;

import com.chengh.vhr.model.Employee;
import com.chengh.vhr.model.PageRequest;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EmployeeService {
    PageInfo<Employee> getPageEmployee(PageRequest pageRequest, String keyword);

    /**
     * 添加员工
     * @Author chengh
     * @param employee
     * @Date 2021/1/31 19:57
     * @Return int
     */
    int addEmployee(Employee employee);

    /**
     * 获得自增长的工号
     * @Author chengh
     * @Date 2021/1/28 22:15
     * @Return java.lang.Integer
     */
    Integer getMaxWordID();

    /**
     * 根据员工的id集合删除员工
     * @Author chengh
     * @param ids id结合
     * @Date 2021/1/30 14:58
     * @Return int
     */
    int deleteEmps(List<Integer> ids);

    /***
     * 根据id修改员工信息
     * @Author chengh
     * @param employee
     * @Date 2021/1/30 16:16
     * @Return int
     */
    int updateEmp(Employee employee);
}
